let t = require;
let e = module;
let o = e.exports;
o.default = e.exports;

('use strict');
console.log('start');
var _n87,
  i =
    (this && this.__extends) ||
    ((_n87 = function n(t, e) {
      return (_n87 =
        Object.setPrototypeOf ||
        ({
          __proto__: []
        } instanceof Array &&
          function (t, e) {
            t.__proto__ = e;
          }) ||
        function (t, e) {
          for (var o in e) {
            Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
          }
        })(t, e);
    }),
    function (t, e) {
      function o() {
        this.constructor = t;
      }
      _n87(t, e),
        (t.prototype =
          null === e
            ? Object.create(e)
            : ((o.prototype = e.prototype), new o()));
    });
Object.defineProperty(o, '__esModule', {
  value: !0
}),
  (o.FieldGuideCom = void 0);
var r = t('UIComponent'),
  a = t('ComUtils'),
  s = t('BuffCfg'),
  c = t('ResMrg'),
  l = (function (t) {
    function e(e, o) {
      var n = t.call(this, e) || this;
      return (e.active = !0), n.refresh(o), n;
    }
    return (
      i(e, t),
      (e.prototype.onInit = function () {
        t.prototype.onInit.call(this),
          (this._txtName = a.default.getComponent(
            cc.Label,
            this.view,
            'icon/txtName'
          )),
          (this._imgIcon = a.default.getComponent(
            cc.Sprite,
            this.view,
            'icon/imgIcon'
          )),
          (this._txtDesc = a.default.getComponent(
            cc.Label,
            this.view,
            '30mibaidiban/txtDesc'
          )),
          (this._txtAttr = a.default.getComponent(
            cc.Label,
            this.view,
            'txtAttr'
          ));
      }),
      (e.prototype.refresh = function (t) {
        var e = s.BuffCfg.ins.getData(t);
        e &&
          (c.ResMrg.loadSpriteByAtlas(this._imgIcon, 'Atlas/Battle', e.icon),
          (this._txtName.string = e.name),
          (this._txtAttr.string = e.attr),
          (this._txtDesc.string = e.desc));
      }),
      e
    );
  })(r.UIComponent);
(o.FieldGuideCom = l), console.log('end');
module.exports = e.exports;
